﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using DiarySocial.Models;

namespace DiarySocial.ViewModels
{
    public partial class HomeWithTimeLineVM
    {
        private List<Diary> _diaries;

        public List<Diary> Diaries
        {
            get { return _diaries ?? new List<Diary>(); }
            set { _diaries = value; }
        }
        [Required]
        [MinLength(10)]
        [MaxLength(1024)]
        public string Body { get; set; }
    }
}